/**
 * @author lu
 * @date 2018/8/10 17:15
 */
var baseLine = "http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch";
var lass = "_code.zip\n";
var str = "";
var iText = "";
for (var i = 1; i < 29; i++) {
    if (i < 10) {
        iText = "0" + i;
    } else {
        iText = "" + i;
    }

    str += (baseLine + iText + lass);
}

console.log(str);

var links = `
http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch01_code.zip
http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch02_code.zip
http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch03_code.zip
http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch04_code.zip
http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch05_code.zip
http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch06_code.zip
http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch07_code.zip
http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch08_code.zip
http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch09_code.zip
http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch10_code.zip
http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch11_code.zip
http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch12_code.zip
http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch13_code.zip
http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch14_code.zip
http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch15_code.zip
http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch16_code.zip
http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch17_code.zip
http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch18_code.zip
http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch19_code.zip
http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch20_code.zip
http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch21_code.zip
http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch22_code.zip
http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch23_code.zip
http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch24_code.zip
http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch25_code.zip
http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch26_code.zip
http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch27_code.zip
http://media.wiley.com/product_ancillary/23/11183013/DOWNLOAD/9781118301326_ch28_code.zip
`;